//
//  QFCell.m
//  XibTableCell
//
//  Created by xubo on 14-1-20.
//  Copyright (c) 2014年 xubo. All rights reserved.
//

#import "QFCell.h"

@implementation QFCell{
    __weak IBOutlet UIImageView *userPicImageView;
    __weak IBOutlet UILabel *userNameLabel;
    __weak IBOutlet UILabel *timeLabel;
    __weak IBOutlet UILabel *userConLabel;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        NSLog(@"init with style");
    }
    return self;
}
-(id)initWithCoder:(NSCoder *)aDecoder{
    self=[super initWithCoder:aDecoder];
    if (self) {
        NSLog(@"init with coder");
    }
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
#pragma mark--
#pragma mark 刷新UI的方法
-(void)refreshUIWithModel:(QFCellModel *)model{
    userPicImageView.image=[UIImage imageNamed:model.picName];
    userNameLabel.text=model.userName;
    userConLabel.text=model.userCon;
    timeLabel.text=model.time;
}
@end
